home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Epic Interactive Enc…lopedia of the Paranormal
/
The Epic Interactive Encyclopedia of the Paranormal (1997).iso
/
savcode
/
cando
/
main.txt
< prev
next >
Wrap
Text File
|
1992-09-02
|
961b
|
53 lines
Let deck2open="EPIC_Encyclopedia:Menufiles/Requesters/Search.deck"
Let result=opendeck(deck2open),"word"
Let type=getchars(result,1,1)
Let number_of_lumps=NumberOfWords(result)
Let number_of_words=number_of_lumps-1
If number_of_words=1
Let word=getword(result,2)
EndIf
If number_of_words=2
Let word=getword(result,2)||"_"||getword(result,3)
EndIf
If number_of_words=3
Let word=getword(result,2)||"_"||getword(result,3)||"_"||getword(result,4)
EndIf
WorkWithDocument "fred"
Clear DOCUMENT
Type word
SaveDocument "fred","env:sub"
If result<>"0 Chob" ;if quit wasn`t selected.
If type="1"
If word<>""
Let text2search=word
Do "ExactSearch"
EndIf
EndIf
If type="2"
If word<>""
Let text2search=word
Do "IndexSearch"
EndIf
EndIf
If type="3"
If word<>""
Let text2search=word
Do "SearchNext"
EndIf
EndIf
If type="4"
If word<>""
Let word2deepsearch=word
Do "DeepSearch"
Let lettermode=false
EndIf
EndIf
EndIf